package com.coursemanage.demo;

import java.util.Scanner;
import java.util.ArrayList;

public class Course {
    private String name;
    int studentNumber;
    Student[] b;
    Scanner scanner = new Scanner(System.in);

    public Course(){
    }

    public void setCName(String name){
        this.name = name;
    }

    public String getName(){
        return name;
    }

    public void setStudentNumber(int setStudentNumber){
        this.studentNumber = studentNumber;
    }

    public void setPer_student(){
        b = new Student[studentNumber];
        for(int i=0; i < b.length;i++){
            b[i] = new Student();
            b[i].setSName(scanner.next());
        }
    }
}